package com.nf.text;

import com.nf.entity.Student;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args){
        ApplicationContext ss = new ClassPathXmlApplicationContext("applicationContext.xml");
        Student a = null;
        a = (Student)ss.getBean("s1");
        System.out.println(a.getName());
        System.out.println(a.getAge());


    }
}
